<?php
return [
    'vendorPath' => dirname(dirname(__DIR__)) . '/vendor',
    'components' => [
        'cache' => [
            'class' => 'yii\caching\FileCache',
        ],
        'mailer' => [
            'class' => 'yii\swiftmailer\Mailer',
            'viewPath' => '@common/mail',
            // send all mails to a file by default. You have to set
            // 'useFileTransport' to false and configure a transport
            // for the mailer to send real emails.
            'useFileTransport' => true,
        ],
        'redis' =>[
            'class' => 'yii\redis\Connection',
            'hostname' => '127.0.0.1',
            'port' => 6379,
            'database' => 0,
        ],
        'db' => [
            'class' => 'yii\db\Connection',
            'dsn' => 'mysql:host=rm-uf6807b65s24jg676rw.mysql.rds.aliyuncs.com;dbname=soupmaster-erp',
            'username' => 'erp_user',
            'password' => '6D8abk32',
            'charset' => 'utf8',
            'tablePrefix' => 'j_',
        ],
        'db_assemble' => [
            'class' => 'yii\db\Connection',
            'dsn' => 'mysql:host=rm-uf6807b65s24jg676rw.mysql.rds.aliyuncs.com;dbname=soupmaster-assemble',
            'username' => 'assemble_user',
            'password' => 'gpnAYGSnR9a8',
            'charset' => 'utf8',
        ],
        'db_report' => [
            'class' => 'yii\db\Connection',

            'dsn' => 'mysql:host=rm-uf6807b65s24jg676rw.mysql.rds.aliyuncs.com;dbname=soupmaster-main',
            'username' => 'main_user',
            'password' => '1xg5ntCv3H1a',
            'charset' => 'utf8',
        ],
        'session' => [
            'cookieParams' => [
                'domain' => '.aaa.com',
                'lifetime' => 0
            ],
            'timeout' => 3600,
        ],
    ],
    //设置时区
    'timeZone' => 'Asia/Shanghai',
];
